﻿/*  Eleven Business Suite : Un ERP básico para pequeños empresarios.
 *  Copyright (C) 2011  Francis Bolaños Arias
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>;.
 */

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ElevenGlobal;
using ElevenGUI;

namespace Eleven
{
    public partial class Eleven : Form
    {

        public Eleven()
        {
            InitializeComponent();
        }

        private void Eleven_Load(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Maximized;
            lblSSFecha.Text = String.Format("{0:F}", DateTime.Now);
        }

        private void ocultarMenus()
        {
            ucMenuGEN1.Enabled = false;
            ucMenuGEN1.Visible = false;
            ucMenuSCM1.Enabled = false;
            ucMenuSCM1.Visible = false;
            ucMenuPOS1.Enabled = false;
            ucMenuPOS1.Visible = false;
            ucMenuCRM1.Enabled = false;
            ucMenuCRM1.Visible = false;
        }

        private void btnGerencia_Click(object sender, EventArgs e)
        {
            ocultarMenus();
            ucMenuGEN1.Enabled = true;
            ucMenuGEN1.Visible = true;
        }

        private void btnInventario_Click(object sender, EventArgs e)
        {
            ocultarMenus();
            ucMenuSCM1.Enabled = true;
            ucMenuSCM1.Visible = true;
        }

        private void btnPOS_Click(object sender, EventArgs e)
        {
            ocultarMenus();
            ucMenuPOS1.Enabled = true;
            ucMenuPOS1.Visible = true;
        }

        private void btnClientes_Click(object sender, EventArgs e)
        {
            ocultarMenus();
            ucMenuCRM1.Enabled = true;
            ucMenuCRM1.Visible = true;
        }

    }
}
